package com.qianfeng.gl4study.youshare.fragments;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.qianfeng.gl4study.youshare.R;
import com.qianfeng.gl4study.youshare.acitivity.common.MainActivity;

/**
 * Created with IntelliJ IDEA.
 * I'm glad to share my knowledge with you all.
 * User:Gaolei
 * Date:2015/2/4
 * Email:pdsfgl@live.com
 */
public class TutorialJumpFragment extends Fragment implements View.OnClickListener {
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
       /*
        Bundle arguments = getArguments();
        int layoutId = R.layout.fragment_tutorial_image_1;
        if(arguments!=null){
            layoutId = arguments.getInt(Constants.ARG_TUTORIAL_IMAGE_LAYOUT);
        }
        */
        View view = inflater.inflate(R.layout.fragment_yutorial_jump, container, false);
        View txtOnClick = view.findViewById(R.id.txtOnClick);
        txtOnClick.setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View v) {

        FragmentActivity activity = getActivity();
        Intent intent = new Intent(activity, MainActivity.class);
        startActivity(intent);
        activity.finish();
    }
}